package com.bangcommunity.bbframe.sdm.web.shiro.session;

import com.bangcommunity.bbframe.sdm.web.exception.RestConf;
import org.apache.shiro.web.session.mgt.DefaultWebSessionManager;
import org.springframework.beans.factory.InitializingBean;

/**
 * @author tanghc
 * @Date 17/11/16
 */
public class SdmDefaultWebSessionManager extends DefaultWebSessionManager implements InitializingBean {

    @Override
    public void afterPropertiesSet() throws Exception {
        this.setGlobalSessionTimeout(RestConf.appSessionExpireSec * 1000);
    }
}
